import { request } from '@/utils'

export default {
  getUser: () => request.get('/admin/user/getUser'),
  refreshToken: () => request.post('/admin/auth/refreshToken', null, { noNeedTip: true }),
  login: (loginForm) => request.post('/admin/user/login', loginForm, { noNeedToken: true }),
  logout: () => request.post('/admin/user/logout'),
}
